var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.isLeader()) {
                cm.askAcceptDecline("无需多言了。你有那个能力来阻止我吗？#k", 1, 9130090)
            } else {
                cm.sendOk("你们的队长才有资格跟我对话。", 9130090);
                cm.dispose()
            }
        } else {
            if (status === a++) {
                for (var a = 0; a < eim.getPlayerCount(); a++) {
                    eim.getPlayers().get(a).getAPI().npc_LeaveField("oid=1")
                }
                cm.spawnMobLimit(9421589, 1, -424, -15, 1);
                cm.dispose()
            }
        }
    }
};